//
//  XYJChangeTableViewCell.m
//  徙游记-01
//
//  Created by hcios on 2017/7/17.
//  Copyright © 2017年 鹿林. All rights reserved.
//

#import "XYJChangeTableViewCell.h"

@implementation XYJChangeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        _titleLabel = [[UILabel alloc] init];
        _moneyLabel = [[UILabel alloc] init];
        [self addSubview:_titleLabel];
        [self addSubview:_moneyLabel];
    }
    return self;
}


-(void)layoutCellWithTitle:(NSString *)title andMoney:(NSString *)money{
    [_titleLabel setFrame:CGRectMake(15, 20, screen_half_width, 30)];
    [_titleLabel setFont:[UIFont fontWithName:FONT_NAME_LTH size:15]];
    [_titleLabel setText:title];
    
    [_moneyLabel setFrame:CGRectMake(SCREEN_WIDTH / 2, 20, SCREEN_WIDTH / 2 - 10, 30)];
    [_moneyLabel setFont:[UIFont fontWithName:FONT_NAME_LTH size:15]];
    _moneyLabel.textAlignment = NSTextAlignmentRight;
    [_moneyLabel setText:money];
    
}

@end
